<template>
  <el-card class="page-tools">
    <el-row type="flex">
      <el-col>
        <!-- <div v-if="showBefore" class="before"> -->
        <!--$slots.before // 通过判断父组件有没有传名称为before的插槽  -->
        <div v-if="$slots.before" class="before">
          <i class="el-icon-info"></i>
          <slot name="before"></slot>
        </div>
      </el-col>
      <el-col>
        <el-row type="flex" justify="end">
          <slot name="after"></slot>
        </el-row>
      </el-col>
    </el-row>

  </el-card>
</template>

<script>
export default {
  name: 'PageTools',
  components: {},
  props: {
    showBefore: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
    }
  },
  created() {

  },
  mounted() {},
  methods: {

  }
}
</script>

<style lang="scss" scoped>

</style>
